package com.xiaomi.back.service.user;

import com.xiaomi.back.dao.user.UserBackDao;
import com.xiaomi.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("UserBack")
public class UserBackImpl implements UserBackService {

    @Autowired
    private UserBackDao userBackDao;


    //查看今日登陆用户
    @Override
    public List<User> LoginCount(String TodayTime) {
        return userBackDao.LoginCount(TodayTime);
    }

    //获取所有用户集合
    @Override
    public List<User> getUserlist() {
        return userBackDao.getUserlist();
    }

    //模糊查询
    @Override
    public List<User> getAllUser(String phone) {
        return userBackDao.getAllUser(phone);
    }


    //根据uid冻结用户
    @Override
    public int Updatefrozen(int uid,int state) {
        return userBackDao.Updatefrozen(uid,state);
    }

    //查看冻结用户
    @Override
    public List<User> getUnseal() {
        return userBackDao.getUnseal();
    }

}
